package cn.tedu._07weibopjt.base.response;

public enum StatusCode {
    USERNAME_ERROR(1000, "用户名错误"),
    PASSWORD_ERROR(1001, "密码错误"),
    USERNAME_EXIST(1002, "用户名被占用"),
    USER_NOT_LOGIN(1003, "用户未登录"),
    SUCCESS(2000, "操作成功"),
    FAILED(2001, "操作失败"),
    VALIDATED_ERROR(3000, "参数验证失败"),;


    private Integer state;
    private String message;

    StatusCode() {
    }

    StatusCode(Integer state, String message) {
        this.state = state;
        this.message = message;
    }

    public Integer getState() {
        return state;
    }

    public String getMessage() {
        return message;
    }
}
